/**
 * jims
 */
package com.jims.master.modules.emr.service;

import com.jims.master.common.persistence.Page;
import com.jims.master.common.service.CrudService;

import com.jims.master.modules.emr.dao.ElectronIndexDiseaseDao;
import com.jims.master.modules.emr.entity.ElectronIndexDisease;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Service
 * @author WangYongQiang
 * @version 2018-08-16
 */
@Service
@Transactional(readOnly = true)
public class ElectronIndexDiseaseService extends CrudService<ElectronIndexDiseaseDao, ElectronIndexDisease> {

	public ElectronIndexDisease get(String id) {
		return super.get(id);
	}
	
	public List<ElectronIndexDisease> findList(ElectronIndexDisease electronIndexDisease) {
		return super.findList(electronIndexDisease);
	}
	
	public Page<ElectronIndexDisease> findPage(Page<ElectronIndexDisease> page, ElectronIndexDisease electronIndexDisease) {
		return super.findPage(page, electronIndexDisease);
	}
	
	@Transactional(readOnly = false)
	public int save(ElectronIndexDisease electronIndexDisease) {
		return super.save(electronIndexDisease);
	}
	
	@Transactional(readOnly = false)
	public int delete(ElectronIndexDisease electronIndexDisease) {
		return super.delete(electronIndexDisease);
	}
	@Transactional(readOnly = false)
	public ElectronIndexDisease getByZhuYuanId(String zhuyuanId) { return dao.getByZhuYuanId(zhuyuanId); }
	
}